'''
Created on 2019年9月2日

@author: bkd
'''
import time
import requests
if __name__ == '__main__':
    
    url = 'https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=AbSi2JxDH2fDLrow0vG0W7cF@qrticket_0&uuid=QZ2afZBaWg==&lang=zh_CN&scan=1567429571'
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36',
    }
    now = str(int(time.time()))
#     r = requests.post(url,headers=headers,params = {"uuid":'IcBqymU9Tg==',"tip":1,"_":now})
    r = requests.get(url,headers=headers)
    print(r.text)
    with open("/tmp/q1","wb") as f:
        f.write(r.content)